//
//  GanLudetailCell.m
//  GanLuApp
//
//  Created by 暗流澎涌 on 2024/4/3.
//

#import "GanLudetailCell.h"
@interface GanLudetailCell()



@end

@implementation GanLudetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.BQtextView.inputAccessoryView = [UIView new];
    self.BQImage.layer.cornerRadius = 8;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

   
}

- (void)setTime:(NSDate *)date {
    
    NSDateFormatter *df = [[NSDateFormatter alloc] init];
    df.dateFormat = @"HH:mm";
    NSString *dateStr = [df stringFromDate:date];
    self.timeLabei.text = dateStr;
    
}

- (void)setDayAndWeek:(NSDate *)dayw {
    
    NSDateFormatter *df = [[NSDateFormatter alloc] init];
    df.dateFormat = @"EEEE";
    NSString *dateStr = [df stringFromDate:dayw];
    self.weekLabel.text = dateStr;
    
    df.dateFormat = @"MM.dd";
    NSString *dateStr2 = [df stringFromDate:dayw];
    self.dayLabel.text = dateStr2;
    
}

@end
